<template>
	<view class="container">
		<view class="flex diygw-col-24 justify-start flex-nowrap flex-clz">
			<view class="flex diygw-col-3 avatar1-clz">
				<view @tap="navigateTo" data-type="page" data-url="/pages/my/qiyejiagerenzhongxin" class="diygw-avatar sm white radius">
					<text class="diy-icon-back_android"></text>
				</view>
			</view>
			<view class="diygw-col-0 text-clz"> 我的感谢金收益 </view>
		</view>
		<view class="diygw-col-24 text3-clz text-orange"> 创业者感谢金 </view>
		<view v-for="(item, index) in project.data.list" :key="index" class="flex diygw-col-24 justify-between flex-nowrap flex2-clz">
			<view class="flex diygw-col-0">
				<view class="diygw-list">
					<view style="" class="diygw-item col-100 row solid-bottom">
						<view class="diygw-avatar">
							<image mode="aspectFit" class="diygw-avatar-img" :src="item.picture_"></image>
						</view>
						<view class="content">
							<view class="title">
								{{ item.user_name_ }}
							</view>
							<view class="text-sm remark">
								{{ item.project_name_ }}
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="diygw-col-0 text2-clz"> ￥1500 </view>
		</view>
		<view class="flex diygw-col-24 justify-between diygw-bottom flex-nowrap flex10-clz">
			<view class="diygw-col-0 text12-clz text-orange"> 总收益：￥35800元 </view>
			<view class="flex diygw-col-12 button-clz">
				<button class="diygw-btn orange radius flex1 margin-xs button-button-clz">立即提现</button>
			</view>
		</view>
		<view class="clearfix"></view>
	</view>
</template>

<script>
	//create by: 邓志锋 <280160522@qq.com> <https://www.diygw.com> DIYGW可视化设计一键生成源码
	export default {
		data() {
			return {
				//用户全局信息
				userInfo: {},
				project: {
					code: '200',
					data: {
						count: 5,
						list: [
							{
								project_type_: '人才',
								user_phone_: '111',
								user_name_: '111',
								id_: '434440356570595329',
								project_status: '优选发布',
								picture_: '111',
								project_desc_: '好项目',
								project_name_: '作业帮'
							},
							{
								project_type_: '人才',
								user_phone_: '123',
								user_name_: '123',
								id_: '434554158620868609',
								project_status: '成交',
								picture_: '123',
								project_desc_: '真好喝',
								project_name_: '汇源果汁'
							},
							{
								project_type_: '人才',
								user_phone_: 'www',
								user_name_: 'www',
								id_: '434559619204907009',
								project_status: '优选发布',
								picture_: 'www',
								project_desc_: 'www',
								project_name_: 'www'
							},
							{
								project_type_: '222',
								user_phone_: '222',
								user_name_: '222',
								id_: '434559717528043521',
								project_status: '222',
								picture_: '222',
								project_desc_: '222',
								project_name_: '222'
							},
							{
								project_type_: '人才',
								user_phone_: '111',
								user_name_: '111',
								id_: '434559825713037313',
								project_status: '成交',
								picture_: '111',
								project_desc_: '111',
								project_name_: '111'
							}
						]
					},
					isOk: true
				}
			};
		},
		onShow() {
			this.setCurrentPage(this);
		},
		onLoad(option) {
			this.setCurrentPage(this);
			if (option) {
				this.setData({
					globalOption: this.getOption(option)
				});
			}

			this.init();
		},
		methods: {
			async init() {
				await this.projectApi();
			},
			// 项目接口 API请求方法
			async projectApi() {
				let project = await this.$http.post(
					'https://agent.diygw.com/',
					{
						url: '/form/formCustSql/view/liststr_projectList',
						method: 'post',
						headers: {
							'Content-Type': 'application/x-www-form-urlencoded'
						},
						param: '{"curPage":1,"pageSize":"10","params":{}}'
					},
					{
						'Content-type': 'application/json'
					},
					'json'
				);
				this.project = project;
			}
		}
	};
</script>

<style lang="scss" scoped>
	.flex-clz {
		box-shadow: 0px 3px 3px rgba(31, 31, 31, 0.16) inset;
		overflow: hidden;
		flex: 1;
		border-bottom: 3px solid #eee;
	}
	.avatar1-clz {
		margin-left: 10px;
		font-weight: bold;
		width: calc(12.5% - 10px - 5px) !important;
		font-size: 16px;
		margin-top: 10px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.text-clz {
		margin-left: 100px;
		padding-top: 10px;
		font-weight: bold;
		padding-left: 0px;
		font-size: 15px;
		padding-bottom: 0px;
		margin-top: 5px;
		margin-bottom: 5px;
		text-align: center;
		margin-right: 5px;
		padding-right: 0px;
	}
	.text3-clz {
		margin-left: 5px;
		padding-top: 0px;
		padding-left: 0px;
		width: calc(100% - 5px - 5px) !important;
		font-size: 17px;
		padding-bottom: 10px;
		margin-top: 15px;
		margin-bottom: 5px;
		border-bottom: 2px solid #eee;
		margin-right: 5px;
		padding-right: 0px;
	}
	.text2-clz {
		margin-left: 5px;
		padding-top: 12px;
		padding-left: 0px;
		font-size: 15px;
		padding-bottom: 0px;
		margin-top: 15px;
		margin-bottom: 5px;
		text-align: right;
		margin-right: 5px;
		padding-right: 0px;
	}
	.flex10-clz {
		margin-left: 5px;
		left: 0px;
		bottom: 0px;
		width: calc(100% - 5px - 5px) !important;
		margin-top: 80px;
		right: 0px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.text12-clz {
		margin-left: 5px;
		padding-top: 0px;
		font-weight: bold;
		padding-left: 0px;
		font-size: 17px;
		padding-bottom: 10px;
		margin-top: 15px;
		font-style: italic;
		margin-bottom: 5px;
		border-bottom: 2px solid #eee;
		margin-right: 5px;
		padding-right: 0px;
	}
	.button-clz {
		margin-left: 5px;
		width: calc(50% - 5px - 5px) !important;
		margin-top: 10px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.button-button-clz {
		margin: 3px !important;
	}
	.container {
		padding-left: 0px;
		padding-right: 0px;

		font-size: 12px;
	}
	.container {
	}
</style>
